from typing import List


class Solution:
    def search(self, nums: List[int], target: int) -> int:
        from collections import Counter
        c=Counter(nums)
        return c[target]